package com.java2104.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class IndexController {

    //跳转到首页
    @GetMapping({"/index","/index.html","/"})
    public String index(){
        return "index";
    }

    @GetMapping({"/checkout","/checkout.html"})
    public String checkout(){
        return "checkout";
    }

    @GetMapping({"/about","/about.html"})
    public String about(){
        return "about";
    }

    @GetMapping({"/contact","/contact.html"})
    public String contact(){
        return "contact";
    }

    @GetMapping({"/login","/login.html"})
    public String login(){
        return "login";
    }

    @GetMapping({"/payment","/payment.html"})
    public String payment(){
        return "payment";
    }

    @GetMapping({"/shop","/shop.html"})
    public String shop(){
        return "shop";
    }

    @GetMapping({"/single_product","/single_product.html"})
    public String singleProduct(){
        return "single_product";
    }

}
